<?php

namespace app\api\services\v1\store;

use app\admin\model\DataStoreUser;
use app\api\services\BaseServices;

class StoreService extends BaseServices
{


    public function in($data)
    {
        $store = [
            'store_type' => $data['store_type'],
            'store_name' => $data['store_name'],
            'address' => $data['address'],
            'consumption' => $data['consumption'],
            'tel' => $data['tel'],
            'remarks' => $data['remarks'],
            'unid' => $data['unid'],
        ];
        if( DataStoreUser::create($store)){
            return true;
        }else{
            return false;
        }

    }



    private function getModel(){
       return new DataStoreUser();
    }


}